Skip to content
This repository was archived by the owner on Jun 28, 2026. It is now read-only.

fix(menubar): clicking submenu header inside dropdown#8175

Merged
melloware merged 1 commit into
primefaces:masterfrom
kaylaa0:fix/issue-8074
Jul 30, 2025
Merged

fix(menubar): clicking submenu header inside dropdown#8175
melloware merged 1 commit into
primefaces:masterfrom
kaylaa0:fix/issue-8074

Conversation

@kaylaa0

@kaylaa0 kaylaa0 commented Jul 30, 2025

Copy link
Copy Markdown
Contributor

Defect Fixes

Issue

  • There was a breaking change.
  • The main issue was that clicking on another MenuBar component didn't close Menu itself.
  • Setting options: { capture: true } fixes the issue however there was another change that caused any click outside button to close the whole menu.

Solution:

  • Reverting breaking part while keeping the options: { capture: true } fixes both the old issue and the new one.

Result / Test Cases:

  • Click on a submenu header and menu shouldn't close.
  • While menu is open click another MenuBar component and menu closes.

Above cases are tested and working correctly.

@melloware melloware added this to the 10.9.7 milestone Jul 30, 2025
@melloware melloware added the Type: Bug Issue contains a defect related to a specific component. label Jul 30, 2025
@melloware

Copy link
Copy Markdown
Member

Excellent fix!

@melloware melloware merged commit 54aa03e into primefaces:master Jul 30, 2025
3 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Type: Bug Issue contains a defect related to a specific component.

Projects

None yet

2 participants